#ifndef _HC595_H_
#define _HC595_H_
#include "sys.h"

sbit HC595_SI_PIN= P0^2;
sbit HC595_SCK_PIN= P0^1;
sbit HC595_RCK_PIN= P0^0;

#define HC595_SI_LOW() HC595_SI_PIN=0
#define HC595_SI_HIGH() HC595_SI_PIN=1

#define HC595_SCK_LOW() HC595_SCK_PIN=0
#define HC595_SCK_HIGH() HC595_SCK_PIN=1

#define HC595_RCK_LOW() HC595_RCK_PIN=0
#define HC595_RCK_HIGH() HC595_RCK_PIN=1

void hc595_init();
void hc595_send_data(u8 dat);
#endif

